// @ts-nocheck
import React from 'react';
import { ApplyPluginsType } from 'D:/reactProjects/react-admin-library/node_modules/_@umijs_runtime@3.3.9@@umijs/runtime';
import * as umiExports from './umiExports';
import { plugin } from './plugin';

export function getRoutes() {
  const routes = [
  {
    "path": "/~demos/:uuid",
    "layout": false,
    "wrappers": [require('D:/reactProjects/react-admin-library/node_modules/_@umijs_preset-dumi@1.1.7@@umijs/preset-dumi/lib/theme/layout').default],
    "component": (props) => {
      const React = require('react');
      const renderArgs = require('../../../node_modules/_@umijs_preset-dumi@1.1.7@@umijs/preset-dumi/lib/plugins/features/demo/getDemoRenderArgs').default(props);

      switch (renderArgs.length) {
        case 1:
          // render demo directly
          return renderArgs[0];

        case 2:
          // render demo with previewer
          return React.createElement(
            require('dumi-theme-default/src/builtins/Previewer.tsx').default,
            renderArgs[0],
            renderArgs[1],
          );

        default:
          return `Demo ${uuid} not found :(`;
      }
    }
  },
  {
    "path": "/_demos/:uuid",
    "redirect": "/~demos/:uuid"
  },
  {
    "__dumiRoot": true,
    "layout": false,
    "path": "/",
    "wrappers": [require('D:/reactProjects/react-admin-library/node_modules/_@umijs_preset-dumi@1.1.7@@umijs/preset-dumi/lib/theme/layout').default, require('D:/reactProjects/react-admin-library/node_modules/_@umijs_preset-dumi@1.1.7@@umijs/preset-dumi/node_modules/dumi-theme-default/src/layout.tsx').default],
    "routes": [
      {
        "path": "/",
        "component": require('D:/reactProjects/react-admin-library/README.md').default,
        "exact": true,
        "meta": {
          "locale": "en-US",
          "title": "组件库",
          "order": null
        },
        "title": "组件库"
      },
      {
        "path": "/components/async-select",
        "component": require('D:/reactProjects/react-admin-library/src/components/async-select/README.md').default,
        "exact": true,
        "meta": {
          "filePath": "src/components/async-select/README.md",
          "updatedTime": 1607495946000,
          "slugs": [
            {
              "depth": 1,
              "value": "异步下拉",
              "heading": "异步下拉"
            },
            {
              "depth": 2,
              "value": "API",
              "heading": "api"
            }
          ],
          "title": "异步下拉",
          "group": {
            "path": "/components",
            "title": "Components"
          }
        },
        "title": "异步下拉"
      },
      {
        "path": "/components/batch-delete-confirm",
        "component": require('D:/reactProjects/react-admin-library/src/components/batch-delete-confirm/index.md').default,
        "exact": true,
        "meta": {
          "filePath": "src/components/batch-delete-confirm/index.md",
          "updatedTime": 1607508996000,
          "slugs": [
            {
              "depth": 1,
              "value": "删除提示",
              "heading": "删除提示"
            }
          ],
          "title": "删除提示",
          "group": {
            "path": "/components",
            "title": "Components"
          }
        },
        "title": "删除提示"
      },
      {
        "path": "/components/confirm",
        "component": require('D:/reactProjects/react-admin-library/src/components/confirm/index.md').default,
        "exact": true,
        "meta": {
          "filePath": "src/components/confirm/index.md",
          "updatedTime": 1607508996000,
          "slugs": [
            {
              "depth": 1,
              "value": "确认框",
              "heading": "确认框"
            }
          ],
          "title": "确认框",
          "group": {
            "path": "/components",
            "title": "Components"
          }
        },
        "title": "确认框"
      },
      {
        "path": "/components/context-menu",
        "component": require('D:/reactProjects/react-admin-library/src/components/context-menu/index.md').default,
        "exact": true,
        "meta": {
          "filePath": "src/components/context-menu/index.md",
          "updatedTime": 1607508996000,
          "slugs": [
            {
              "depth": 1,
              "value": "右键菜单",
              "heading": "右键菜单"
            }
          ],
          "title": "右键菜单",
          "group": {
            "path": "/components",
            "title": "Components"
          }
        },
        "title": "右键菜单"
      },
      {
        "path": "/components/copy",
        "component": require('D:/reactProjects/react-admin-library/src/components/copy/index.md').default,
        "exact": true,
        "meta": {
          "filePath": "src/components/copy/index.md",
          "updatedTime": 1607508996000,
          "slugs": [
            {
              "depth": 1,
              "value": "复制文本",
              "heading": "复制文本"
            }
          ],
          "title": "复制文本",
          "group": {
            "path": "/components",
            "title": "Components"
          }
        },
        "title": "复制文本"
      },
      {
        "path": "/components/form-element",
        "component": require('D:/reactProjects/react-admin-library/src/components/form-element/README.md').default,
        "exact": true,
        "meta": {
          "filePath": "src/components/form-element/README.md",
          "updatedTime": 1607495946000,
          "slugs": [
            {
              "depth": 1,
              "value": "表单元素",
              "heading": "表单元素"
            },
            {
              "depth": 2,
              "value": "API",
              "heading": "api"
            }
          ],
          "title": "表单元素",
          "group": {
            "path": "/components",
            "title": "Components"
          }
        },
        "title": "表单元素"
      },
      {
        "path": "/components/icon",
        "component": require('D:/reactProjects/react-admin-library/src/components/icon/index.md').default,
        "exact": true,
        "meta": {
          "filePath": "src/components/icon/index.md",
          "updatedTime": 1607505921000,
          "slugs": [
            {
              "depth": 1,
              "value": "图标",
              "heading": "图标"
            },
            {
              "depth": 2,
              "value": "属性",
              "heading": "属性"
            },
            {
              "depth": 2,
              "value": "基础用法",
              "heading": "基础用法"
            },
            {
              "depth": 2,
              "value": "图标选择器",
              "heading": "图标选择器"
            }
          ],
          "title": "图标",
          "group": {
            "path": "/components",
            "title": "Components"
          }
        },
        "title": "图标"
      },
      {
        "path": "/components/operator",
        "component": require('D:/reactProjects/react-admin-library/src/components/operator/README.md').default,
        "exact": true,
        "meta": {
          "filePath": "src/components/operator/README.md",
          "updatedTime": 1607495946000,
          "slugs": [
            {
              "depth": 1,
              "value": "操作",
              "heading": "操作"
            },
            {
              "depth": 2,
              "value": "何时使用",
              "heading": "何时使用"
            },
            {
              "depth": 2,
              "value": "API",
              "heading": "api"
            },
            {
              "depth": 3,
              "value": "items项",
              "heading": "items项"
            }
          ],
          "title": "操作",
          "group": {
            "path": "/components",
            "title": "Components"
          }
        },
        "title": "操作"
      },
      {
        "path": "/components/pagination",
        "component": require('D:/reactProjects/react-admin-library/src/components/pagination/README.md').default,
        "exact": true,
        "meta": {
          "filePath": "src/components/pagination/README.md",
          "updatedTime": 1607495946000,
          "slugs": [
            {
              "depth": 1,
              "value": "分页组件",
              "heading": "分页组件"
            },
            {
              "depth": 2,
              "value": "API",
              "heading": "api"
            }
          ],
          "title": "分页组件",
          "group": {
            "path": "/components",
            "title": "Components"
          }
        },
        "title": "分页组件"
      },
      {
        "path": "/components/query-bar",
        "component": require('D:/reactProjects/react-admin-library/src/components/query-bar/README.md').default,
        "exact": true,
        "meta": {
          "filePath": "src/components/query-bar/README.md",
          "updatedTime": 1607495946000,
          "slugs": [
            {
              "depth": 1,
              "value": "查询条",
              "heading": "查询条"
            },
            {
              "depth": 2,
              "value": "何时使用",
              "heading": "何时使用"
            },
            {
              "depth": 2,
              "value": "API",
              "heading": "api"
            }
          ],
          "title": "查询条",
          "group": {
            "path": "/components",
            "title": "Components"
          }
        },
        "title": "查询条"
      },
      {
        "path": "/components/table-row-draggable",
        "component": require('D:/reactProjects/react-admin-library/src/components/table-row-draggable/README.md').default,
        "exact": true,
        "meta": {
          "filePath": "src/components/table-row-draggable/README.md",
          "updatedTime": 1607495946000,
          "slugs": [
            {
              "depth": 1,
              "value": "表格行可拖拽",
              "heading": "表格行可拖拽"
            },
            {
              "depth": 2,
              "value": "API",
              "heading": "api"
            },
            {
              "depth": 2,
              "value": "调用方式",
              "heading": "调用方式"
            }
          ],
          "title": "表格行可拖拽",
          "group": {
            "path": "/components",
            "title": "Components"
          }
        },
        "title": "表格行可拖拽"
      },
      {
        "path": "/components/tool-bar",
        "component": require('D:/reactProjects/react-admin-library/src/components/tool-bar/README.md').default,
        "exact": true,
        "meta": {
          "filePath": "src/components/tool-bar/README.md",
          "updatedTime": 1607495946000,
          "slugs": [
            {
              "depth": 1,
              "value": "工具条",
              "heading": "工具条"
            },
            {
              "depth": 2,
              "value": "何时使用",
              "heading": "何时使用"
            },
            {
              "depth": 2,
              "value": "API",
              "heading": "api"
            },
            {
              "depth": 3,
              "value": "每一项API",
              "heading": "每一项api"
            }
          ],
          "title": "工具条",
          "group": {
            "path": "/components",
            "title": "Components"
          }
        },
        "title": "工具条"
      },
      {
        "path": "/components/user-avatar",
        "component": require('D:/reactProjects/react-admin-library/src/components/user-avatar/README.md').default,
        "exact": true,
        "meta": {
          "filePath": "src/components/user-avatar/README.md",
          "updatedTime": 1607495946000,
          "slugs": [
            {
              "depth": 1,
              "value": "用户头像",
              "heading": "用户头像"
            },
            {
              "depth": 2,
              "value": "何时使用",
              "heading": "何时使用"
            },
            {
              "depth": 2,
              "value": "API",
              "heading": "api"
            }
          ],
          "title": "用户头像",
          "group": {
            "path": "/components",
            "title": "Components"
          }
        },
        "title": "用户头像"
      },
      {
        "path": "/layouts",
        "component": require('D:/reactProjects/react-admin-library/src/layouts/README.md').default,
        "exact": true,
        "meta": {
          "filePath": "src/layouts/README.md",
          "updatedTime": 1607495946000,
          "slugs": [
            {
              "depth": 1,
              "value": "基础框架",
              "heading": "基础框架"
            },
            {
              "depth": 2,
              "value": "特性",
              "heading": "特性"
            },
            {
              "depth": 2,
              "value": "导航布局说明",
              "heading": "导航布局说明"
            },
            {
              "depth": 2,
              "value": "页面头部",
              "heading": "页面头部"
            },
            {
              "depth": 2,
              "value": "左侧菜单",
              "heading": "左侧菜单"
            },
            {
              "depth": 3,
              "value": "菜单数据",
              "heading": "菜单数据"
            },
            {
              "depth": 3,
              "value": "相关方法",
              "heading": "相关方法"
            }
          ],
          "title": "基础框架",
          "group": {
            "path": "/layouts",
            "title": "Layouts"
          }
        },
        "title": "基础框架"
      },
      {
        "path": "/redux",
        "component": require('D:/reactProjects/react-admin-library/src/redux/README.md').default,
        "exact": true,
        "meta": {
          "filePath": "src/redux/README.md",
          "updatedTime": 1607495946000,
          "slugs": [
            {
              "depth": 1,
              "value": "redux 封装",
              "heading": "redux-封装"
            },
            {
              "depth": 2,
              "value": "构建",
              "heading": "构建"
            },
            {
              "depth": 2,
              "value": "关于redux",
              "heading": "关于redux"
            },
            {
              "depth": 3,
              "value": "action：",
              "heading": "action："
            },
            {
              "depth": 3,
              "value": "回调处理",
              "heading": "回调处理"
            },
            {
              "depth": 3,
              "value": "异步写法",
              "heading": "异步写法"
            },
            {
              "depth": 4,
              "value": "action异步写法",
              "heading": "action异步写法"
            },
            {
              "depth": 4,
              "value": "reducer 异步写法：",
              "heading": "reducer-异步写法："
            },
            {
              "depth": 3,
              "value": "redux中的异常处理",
              "heading": "redux中的异常处理"
            },
            {
              "depth": 4,
              "value": "异步异常",
              "heading": "异步异常"
            },
            {
              "depth": 4,
              "value": "同步异常",
              "heading": "同步异常"
            },
            {
              "depth": 3,
              "value": "将数据存储到localStorage中",
              "heading": "将数据存储到localstorage中"
            },
            {
              "depth": 3,
              "value": "撤销&重做",
              "heading": "撤销重做"
            }
          ],
          "title": "redux 封装",
          "group": {
            "path": "/redux",
            "title": "Redux"
          }
        },
        "title": "redux 封装"
      },
      {
        "path": "/components",
        "meta": {},
        "exact": true,
        "redirect": "/components/async-select"
      }
    ],
    "title": "ra-lib",
    "component": (props) => props.children
  }
];

  // allow user to extend routes
  plugin.applyPlugins({
    key: 'patchRoutes',
    type: ApplyPluginsType.event,
    args: { routes },
  });

  return routes;
}
